import java.util.Calendar;

public class _13a1世纪末的星期{
    public static void main(String[] args) {
        
        /*for(int year = 1999;year<10000;year+=100){
            calendar.set(calendar.YEAR,year);
            calendar.set(calendar.MONTH, 11);
            calendar.set(calendar.DAY_OF_MONTH,31);
            System.out.println(year+calendar.YEAR);
            if(calendar.get(calendar.DAY_OF_WEEK)==1){
                System.out.println(year);
                break;
            }
        }*/
        Calendar cal = Calendar.getInstance();
        int year = cal.get(Calendar.YEAR);
        int month = cal.get(Calendar.MONTH)+1;
        int dayOfMonth = cal.get(Calendar.DAY_OF_MONTH);
        System.out.println(year + "年" + month + "月" + dayOfMonth + "日");
        cal.add(Calendar.DAY_OF_MONTH, 3);
        year = cal.get(Calendar.YEAR);
        month = cal.get(Calendar.MONTH);
        dayOfMonth = cal.get(Calendar.DAY_OF_MONTH);
        System.out.println(year + "年" + month + "月" + dayOfMonth + "日");
    }
}